package com.cy.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Emp {
    private Integer id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private Integer eid;
    private String ename;
    private Sex sex;
    private Integer deptid;
    private Double total;
    private String attachment;
    private String dname;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachmnet) {
        this.attachment = attachmnet;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Emp(Integer id, Date date, Integer eid, String ename, Sex sex, Integer deptid, Double total, String attachment, String dname) {
        this.id = id;
        this.date = date;
        this.eid = eid;
        this.ename = ename;
        this.sex = sex;
        this.deptid = deptid;
        this.total = total;
        this.attachment = attachment;
        this.dname = dname;
    }

    public Emp() {
    }
}
